
sum1 = 0
sum2 = 0

for i in range(1,51):
    if i%2 == 0 :
        sum2 += i
    else:
        sum1 += i

print(f"1-50内的奇数和为{sum1}")
print(f"1-50内的偶数和为{sum2}")





